package com.pro.service.imple;

import com.pro.dao.JsCommentMapper;
import com.pro.entity.Course;
import com.pro.entity.JsComment;
import com.pro.entity.JsMicrocircle;
import com.pro.entity.Product;
import com.pro.service.JsCommentService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * auther 杨沛琪
 * createDate 2021/11/11
 */
@Service
public class JsCommentServiceImple implements JsCommentService {
    @Autowired
    private JsCommentMapper jsCommentMapper;

    @Override
    public List<JsComment> getManagementTable(String status) {
        return jsCommentMapper.getManagementTable(status);
    }

    @Override
    public int getCounts(Integer gid) {
        return jsCommentMapper.getCounts(gid);
    }

    @Override
    public List<JsComment> getleadingUserTable(String status) {
        return jsCommentMapper.getleadingUserTable(status);
    }

    @Override
    public int countCommentNum(Integer type,String userType, String status, String commentDate) {
        return jsCommentMapper.countCommentNum(type,userType, status, commentDate);
    }

    @Override
    public int countPeopleNum(Integer type,String userType, String status, String commentDate) {
        return jsCommentMapper.countPeopleNum(type,userType, status, commentDate);
    }

    @Override
    public boolean del(Integer userId) {
        return jsCommentMapper.del(userId);
    }

    @Override
    public boolean intercept(Integer userId) {
        return jsCommentMapper.intercept(userId);
    }

    @Override
    public boolean recovery(Integer userId) {
        return jsCommentMapper.recovery(userId);
    }

    @Override
    public List<JsComment> getCourseManagementTable(String status) {
        return jsCommentMapper.getCourseManagementTable(status);
    }

    @Override
    public List<JsComment> getCoureseUserTable(String status) {
        return jsCommentMapper.getCoureseUserTable(status);
    }

    @Override
    public List<Product> getCmmodityInformation(Integer commodityId) {
        return jsCommentMapper.getCmmodityInformation(commodityId);
    }

    @Override
    public List<Course> getCourseInformation(Integer courseId) {
        return jsCommentMapper.getCourseInformation(courseId);
    }

    @Override
    public List<JsComment> getCircleManagementTable(String status) {
        return jsCommentMapper.getCircleManagementTable(status);
    }

    @Override
    public List<JsComment> getCircleUserTable(String status) {
        return jsCommentMapper.getCircleUserTable(status);
    }

    @Override
    public List<JsMicrocircle> getMicrocircleInformation(Integer id) {
        return jsCommentMapper.getMicrocircleInformation(id);
    }

    @Override
    public List<JsComment> getAllGoodsComments(Integer commodityId,Integer type) {
        return jsCommentMapper.getAllGoodsComments(commodityId,type);
    }

    @Override
    public boolean displayComment(Integer id) {
        return jsCommentMapper.displayComment(id);
    }

    @Override
    public boolean showComment(Integer id) {
        return jsCommentMapper.showComment(id);
    }

    @Override
    public boolean deleComment(Integer id) {
        return jsCommentMapper.deleComment(id);
    }

    @Override
    public boolean referTo(Integer userId, Integer commodityId, Integer type, String content, Integer parentId, String commentDate, Integer display, Integer fabulous, Integer status, Integer userType) {
        return jsCommentMapper.referTo(userId, commodityId, type, content, parentId, commentDate, display, fabulous, status, userType);
    }

    @Override
    public List<JsComment> getBeforeUserComments(Integer commodityId, Integer type) {
        return jsCommentMapper.getBeforeUserComments(commodityId, type);
    }

    @Override
    public List<JsComment> getAllCourseComments(Integer commodityId, Integer type) {
        return jsCommentMapper.getAllCourseComments(commodityId, type);
    }

    @Override
    public List<JsComment> getUserCourseComments(Integer commodityId, Integer type) {
        return jsCommentMapper.getUserCourseComments(commodityId, type);
    }

    @Override
    public List<JsComment> getAllCircleComments(Integer commodityId, Integer type) {
        return jsCommentMapper.getAllCircleComments(commodityId, type);
    }

    @Override
    public List<JsComment> getUserCircleComments(Integer commodityId, Integer type) {
        return jsCommentMapper.getUserCircleComments(commodityId, type);
    }
    //


    @Override
    public List<JsComment> getUserPersonCommodityComment(String status,Integer createId) {
        return jsCommentMapper.getUserPersonCommodityComment(status,createId);
    }

    @Override
    public List<JsComment> getPersonCommodityComment(String status,Integer createId) {
        return jsCommentMapper.getPersonCommodityComment(status,createId);
    }

    @Override
    public List<JsComment> getUserPersonCourseComment(String status, Integer createId) {
        return jsCommentMapper.getUserPersonCourseComment(status, createId);
    }

    @Override
    public List<JsComment> getPersonCourseComment(String status, Integer createId) {
        return jsCommentMapper.getPersonCourseComment(status, createId);
    }

    @Override
    public List<JsComment> getUserPersonMicroCircleComment(String status, Integer userId) {
        return jsCommentMapper.getUserPersonMicroCircleComment(status, userId);
    }

    @Override
    public List<JsComment> getPersonMicroCircleComment(String status, Integer userId) {
        return jsCommentMapper.getPersonMicroCircleComment(status, userId);
    }

    @Override
    public int countGoodsCommentNum(Integer createId, Integer type, String userType, String status, String commentDate) {
        return jsCommentMapper.countGoodsCommentNum(createId, type, userType, status, commentDate);
    }

    @Override
    public int countGoodsPeopleNum(Integer createId, Integer type, String userType, String status, String commentDate) {
        return jsCommentMapper.countGoodsPeopleNum(createId, type, userType, status, commentDate);
    }

    @Override
    public int countCourseCommentNum(Integer createId, Integer type, String userType, String status, String commentDate) {
        return jsCommentMapper.countCourseCommentNum(createId, type, userType, status, commentDate);
    }

    @Override
    public int countCoursePeopleNum(Integer createId, Integer type, String userType, String status, String commentDate) {
        return jsCommentMapper.countCoursePeopleNum(createId, type, userType, status, commentDate);
    }

    @Override
    public int countCircleCommentNum(Integer userId, Integer type, String userType, String status, String commentDate) {
        return jsCommentMapper.countCircleCommentNum(userId, type, userType, status, commentDate);
    }

    @Override
    public int countCirclePeopleNum(Integer userId, Integer type, String userType, String status, String commentDate) {
        return jsCommentMapper.countCirclePeopleNum(userId, type, userType, status, commentDate);
    }
}
